package com.zhihuichongcheng.application.bean.openclass;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 3water on 2016/11/2.
 */

public class SubCategory implements Parcelable{
    public static final Creator<SubCategory> CREATOR = new Creator<SubCategory>() {
        @Override
        public SubCategory createFromParcel(Parcel in) {
            return new SubCategory(in);
        }

        @Override
        public SubCategory[] newArray(int size) {
            return new SubCategory[size];
        }
    };
    private String categoryName;
    private String openClassCategoryId;

    protected SubCategory(Parcel in) {
        categoryName = in.readString();
        openClassCategoryId = in.readString();
    }

    public SubCategory() {

    }

    public String getOpenClassCategoryId() {
        return openClassCategoryId;
    }

    public void setOpenClassCategoryId(String openClassCategoryId) {
        this.openClassCategoryId = openClassCategoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(categoryName);
        dest.writeString(openClassCategoryId);
    }
}
